package com.giscloud.amp.core;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author:gxd
 * @Description:
 * @Date: 21:10 2018/4/12
 * @Modified By:
 */
@Component("serviceConstConfig")
public class ServiceConstConfig {

    @Value("${gather.username:addrcollect}")
    private String gatherUserName;

    @Value("${newdc.url:http://111.40.214.178:9080/newdc/}")
    private String newdcUrl;

    @Value("${dp.url:http://111.40.214.180/DpPlatformtest/}")
    private String dpUrl;

    @Value("${gxd.systemCode:systemamp}")
    private String systemCode;

    /**
     * 超级用户id
     */
    @Value("${gxd.sso.adminId:1}")
    private String adminId;

    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    public String getSystemCode() {
        return systemCode;
    }

    public void setSystemCode(String systemCode) {
        this.systemCode = systemCode;
    }

    public String getGatherUserName() {
        return gatherUserName;
    }

    public void setGatherUserName(String gatherUserName) {
        this.gatherUserName = gatherUserName;
    }


    public String getNewdcUrl() {
        return newdcUrl;
    }

    public void setNewdcUrl(String newdcUrl) {
        this.newdcUrl = newdcUrl;
    }

    public String getDpUrl() {
        return dpUrl;
    }

    public void setDpUrl(String dpUrl) {
        this.dpUrl = dpUrl;
    }

    @Override
    public String toString() {
        return String.format(
                "[CommConstConfig] gatherUserName: %s,newdcUrl : %s,dpUrl : %s",
                gatherUserName,newdcUrl,dpUrl);
    }
}
